home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
301-325
/
307
/
fileio
/
readmefirst!
< prev
next >
Wrap
Text File
|
1995-03-14
|
3KB
|
70 lines
This is the FileIO requester.library, a disk-based shared library that
can be opened and used by many applications. It's primary purpose is to
allow a user of your program to easily make filename selection for load
and save routines using the Amiga Intuition interface. The FileIO requester
has many features:
- The ability to scroll through the list of filenames and drawers using
the mouse, slider (Prop), and Arrow (boolean) gadgets.
- The option to select a filename by pointing and clicking the mouse,
or typing in a string gadget.
- The option to change disk (root) and sub directories with the mouse or
string gadgets.
- Returns information to your program about the size of the selected
file, the number of free bytes on that file's disk, intelligently
separates disk and drawer names from filenames, etc.
- Is written in tight 68000 and is approx 10K in size total (i.e. even
after loading, unlike other requesters)
- Can display a list of devices/disknames by clicking the right mouse for
easy selection of a particular device/disk.
- Can display lists of custom strings (i.e. non-filename operation)
This version of the FileIO library is an update to the one that appeared
on Fish Disk #257. This is version 1.5. A new feature allows the user to
select multiple filenames. The new doc file describes this feature fully, and
there are new examples in C and asm to show how to utilize this feature.
Also, this version fixes the following bugs in 1.4
1). The original documentation had the parameters sent to a custom handler
written in C in the wrong order. The new document details the correct
arg order.
2). The bug in the FILEIO's FileSize field is fixed. Previously, when
using device names, it was set to a size of 7 bytes. Ick!! Also, it
is now set properly when the user types in a filename and then selects
OK without hitting RETURN first.
3). Title bar input is now scrollable so that the user can enter/edit text
via the window's title bar and actually see everything.
4). PromptUserEntry() now properly stores a $1B (ESC) when the user presses
escape.
5). A new NO_ALPHABETIZE flag has been added so that filenames aren't put
in alphabetical order.
6). Selecting CANCEL when in SPECIAL_REQ mode no longer causes subsequent
invocations of DoFileIO() with that FileIO struct to always return
a CANCELLED operation.
With this many features, why are you waiting for the stripped-down file
requester that is supposedly forthcoming with 1.4 OS?
This library can be used by any C, asm, or Basic application.
The actual requester.library file must be placed in the libs drawer of
your bootdisk in order to run these examples. You can run the CopyLib program
to copy this library to your bootdisk. If the FileIO requester appears, the
library was copied OK. Select the cancel gadget to exit. Alternately, you
may simply copy the file using the CLI.
Additionally, basic users must copy requester.bmap (and any other bmap
files) to the current dir when using the basic examples. It might be a good
idea to copy the bmap files to the lib drawer of the boot disk along with
the library, then modify the lines in the example programs to include this
path.
LIBRARY "sys:libs/requester.bmap"